##################################
#
# Make file for libdisperse project.
#    build both library and test applications.
# Author: YeYongJie (SockyJam)   
# Date: 2010-9-19
#
##################################

CC=gcc
LDFLAGS=
CFLAGS = -c
RM=del

LIBPRO=libdisperse.lib
ELFPRO=test1_disperse

CFILES= libdisperse.c \
             liblog.c

TEST1FILE= main.c

OBJFILES= libdisperse.o \
                 liblog.o


all: $(LIBPRO) $(ELFPRO) 

$(LIBPRO): $(OBJFILES)
	$(CC) $(LDFLAGS) $^ -o $@

$(ELFPRO):

	
.c.o:
	$(CC) $(CFLAGS)  $<


clean:
	$(RM) *.o 
	$(RM) $(LIBPRO) $(ELFPRO) 
	